package com.example.yuanann.vegetable_app.fragment;

import static android.content.Context.MODE_PRIVATE;

import android.content.Intent;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.os.Handler;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;

import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.fragment.app.Fragment;
import androidx.fragment.app.FragmentManager;
import androidx.fragment.app.FragmentTransaction;

import com.example.yuanann.vegetable_app.R;
import com.example.yuanann.vegetable_app.activity.Order;


public class MerchantIndex extends Fragment {

    @Nullable
    @Override
    public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
        View view=inflater.inflate(R.layout.fragment_home_merchant_index,container,false);
        return view;
    }
    public void onActivityCreated(Bundle savedInstanceState) {

        super.onActivityCreated(savedInstanceState);
        super.onCreate(savedInstanceState);

        TextView myyhq=(TextView)getActivity().findViewById(R.id.myyhq);
        TextView myjf=(TextView)getActivity().findViewById(R.id.myjf);
        TextView a1=(TextView)getActivity().findViewById(R.id.a1);
        TextView name=(TextView) getActivity().findViewById(R.id.name);
        SharedPreferences sp =  getActivity().getSharedPreferences("name", MODE_PRIVATE);
        String b = "我的店铺";
        name.setText(b);

    }
}

